home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / tchk050.arc / STRINGHK.H < prev    next >
Text File  |  1988-11-19  |  1KB  |  21 lines

  1. /* TCHK 0.50 - Howard Kapustein's Turbo C library     11-18-87 */
  2. /* Copyright (C) 1987, Howard Kapustein.  All rights reserved. */
  3.  
  4. /* stringhk.h  -  Howard Kapustein's string header file */
  5.  
  6. /* function prototypes */
  7. int intlen(char *number);       /* find length of integer part of string */
  8. char *strcomma(char *source);   /* convert a string to xx,xxx,xxx format */
  9. char *strtodol(char *source);   /* convert string to $ format */
  10. char *ltrim(char *source);             /* trim blanks on left */
  11. char *rtrim(char *source);             /* trim blanks on right */
  12. char *atrim(char *source);             /* trim blanks on left & right */
  13. char *strins(char *source, char *new, char *ptr);      /* string insert */
  14. char *strdel(char *source, char *old); /* string delete */
  15. char *strrep(char c, int len);         /* replicate c len times */
  16. char *leftstr(char *source, int len);  /* LEFT$(SOURCE$,len) */
  17. char *rightstr(char *source, int len); /* RIGHT$(SOURCE$,len) */
  18. char *midstr(char *source, int begin, int len);  /* MID$(SOURCE$,begin,len) */
  19. char *strshleft(char *source, int count);    /* shift string left count chars */
  20. char *strshright(char *source, int count);   /* shift string right count chars */
  21.